package com.study.commomThirdPartyTechnologies.controller;

import com.study.commomThirdPartyTechnologies.service.IdentifyAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wei.zhao
 * @description:
 * @date 2022年08月04日 15:36
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    IdentifyAddressService identifyAddressService;

    /*
     * @description 百度地址识别
     * @author wei.zhao
     * @date 2022/8/5 11:03
     * @param addresss
     * @return java.lang.String
     */
    @PostMapping("/identifyAddress")
    public String identifyAddress(@RequestParam("address") String addresss) {
        return identifyAddressService.identifyAddress(addresss);
    }

}
